package com.ruoyi.web.controller.system;

import com.ruoyi.common.utils.bean.ResultBean;
import com.ruoyi.common.utils.controller.BaseController;
import com.ruoyi.system.service.AorderService;
import com.ruoyi.web.query.OrderQuery;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "订单管理")
@RestController
@RequestMapping("/order")
public class AorderController extends BaseController {
    @Autowired
    AorderService aorderService;
    @RequestMapping("/list")
    @ApiOperation("订单列表")
    public ResultBean list(OrderQuery query){
        return success("商品列表",aorderService.query(query.toMap()));
    }
}
